cmake_minimum_required(VERSION 3.18)

project(test_target_include_directories)

add_library(suba SHARED a.c)
add_library(subb SHARED b.c)

target_include_directories(suba PRIVATE suba
    PUBLIC common)

get_target_property(PUBLIC_INCLUDE_DIRS suba INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(PRIVATE_INCLUDE_DIRS suba INCLUDE_DIRECTORIES)
message(STATUS "Public include directories for suba: ${PUBLIC_INCLUDE_DIRS}")
message(STATUS "Private include directories for suba: ${PRIVATE_INCLUDE_DIRS}")
